let isLocked = false;
exports.executionLock = (time = 1000) => {
    return new Promise((resolve, reject) => {
        if (!isLocked) {
            resolve();
            isLocked = true;
            setTimeout(() => {
                isLocked = false;
            }, time);
        } else {
            reject();
        }
    });
};
